package com.example.goodpet.db;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.example.goodpet.db.dao.GoodpetHistoryDAO;
import com.example.goodpet.db.dao.TieziHistoryDAO;
import com.example.goodpet.db.dao.SearchHistoryDAO;
import com.example.goodpet.db.dao.UserDAO;
import com.example.goodpet.db.entity.GoodpetHistory;
import com.example.goodpet.db.entity.TieziHistory;
import com.example.goodpet.db.entity.SearchHistory;
import com.example.goodpet.db.entity.User;


@Database(entities = {User.class, GoodpetHistory.class,TieziHistory.class, SearchHistory.class},
        version = 6,
        exportSchema = false
)
public abstract class AppDatabase extends RoomDatabase {

    public abstract UserDAO userDao();

    public abstract GoodpetHistoryDAO goodpetHistoryDAO();

    public abstract TieziHistoryDAO tieziHistoryDAO();

    public abstract SearchHistoryDAO searchHistoryDAO();

}
